package com.example.system.domain.video.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

@Getter
@Setter
public class VideoVO {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long videoId;

    private String videoName;

    private Double videoDuration;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    public VideoVO() {
    }

    public VideoVO(Long videoId, String videoName, Double videoDuration, LocalDateTime createTime) {
        this.videoId = videoId;
        this.videoName = videoName;
        this.videoDuration = videoDuration;
        this.createTime = createTime;
    }
} 